
<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@ page import="com.database.DataBase" %>
<html>
  <head>

    <title>My JSP 'wintypecallSetSub.jsp' starting page</title>

  </head>
  
  <body>
      <%
        
         String branchID=1+"";//request.getParameter("branchName");
         String windowID=request.getParameter("WinTypeID");
         String WinTypeCallID=new String(request.getParameter("WinTypeCallID").toString().getBytes("ISO8859_1"));
         String WinTypeCallID1=request.getParameter("WinTypeCallID1");
         String WinTypeName=new String(request.getParameter("WinTypeName").toString().getBytes("ISO8859_1"));
         String WinTypeStartTime=new String(request.getParameter("WinTypeStartTime").toString());
         String WinTypeEndTime=new String(request.getParameter("WinTypeEndTime").toString());
         String WinTypeStartTime1=new String(request.getParameter("WinTypeStartTime1").toString());
         String WinTypeEndTime1=request.getParameter("WinTypeEndTime1").toString();
         String IsTicketButton=request.getParameter("IsTicketButton").toString();
         String StopAtWeekEnd=request.getParameter("StopAtWeekEnd").toString();
         
         DataBase base=new DataBase();
         String sql="";   
         sql="insert into wintypeall(BranchID,WinTypeID,WinTypeCallID,WinTypeCallID1,WinTypeName,WinTypeStartTime,WinTypeEndTime,WinTypeStartTime1,WinTypeEndTime1,IsTicketButton,StopAtWeekEnd) values('"+branchID+"','"+windowID+"','"+WinTypeCallID+"','"+WinTypeCallID1+"','"+WinTypeName+"','"+WinTypeStartTime+"','"+WinTypeEndTime+"','"+WinTypeStartTime1+"','"+WinTypeEndTime1+"','"+IsTicketButton+"','"+StopAtWeekEnd+"')";
         
        
         base.executeUpdate(sql);
         base.closeStmt();
         base.closeConn();
        
       
              response.sendRedirect("wintypecallSuccess.jsp?branchID="+branchID+"&sign=2");
       
   %>
  </body>
</html>
